/*
 * unittest2.c
 * CS362 Assignment 2
 * Hugh McDonald (mcdonalh)
 */
#include "dominion.h"
#include <assert.h>
#include <stdio.h>

int main(int argc, char **argv)
{
	printf("unittest2:\n");

	// Start a new game
	struct gameState *testGame = newGame();

	// Initialize the game
	int testRandomSeed = -1;
	int k[10] = {adventurer, council_room, feast, gardens, mine,
	       remodel, smithy, village, baron, great_hall};

	// Test
	int r;
	int i;
	int j;
    for(i = 2; i < 5; i++) {
        r = initializeGame(i, k, testRandomSeed, testGame);
        assert (r == 0);

        for(j = 0; j < 10; j++) {
            printf("Players: %d, Test: %d, ", i, j);
            r = shuffle(i, testGame);
            if(r == 0) {
            	printf("Success\n");
            } else {
            	printf("Failure\n");
            }   
        }
    }

	return 0;
}